<?php

declare(strict_types=1);

namespace DreamCat\StateMachine\Enums;

use Dreamcat\ApiDoc\Annotations\EnumDesc;
use MyCLabs\Enum\Enum;

/**
 * 动作状态特定状态码
 * @author vijay
 * @method static ActionStatusCodeEnum UNSTART()
 * @method static ActionStatusCodeEnum RUNNING()
 * @method static ActionStatusCodeEnum PAUSE()
 * @method static ActionStatusCodeEnum FINISH()
 * @method static ActionStatusCodeEnum STOP()
 * @method static ActionStatusCodeEnum EXCEPTION()
 * @method static ActionStatusCodeEnum TIMEOUT()
 */
class ActionStatusCodeEnum extends Enum
{
    #[EnumDesc("未开始")]
    public const UNSTART = 0;
    #[EnumDesc("执行中")]
    public const RUNNING = 1;
    #[EnumDesc("暂停")]
    public const PAUSE = 2;
    #[EnumDesc("完成")]
    public const FINISH = 3;
    #[EnumDesc("终止")]
    public const STOP = 4;
    #[EnumDesc("异常")]
    public const EXCEPTION = 5;
    #[EnumDesc("超时")]
    public const TIMEOUT = 6;
}

# end of file
